<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!--档案申请模块-->
<div role="tabpanel" class="tab-pane" id="scho">

	
	
	<div style="width:70%;height:500px;background: #FFFFFF;margin-left: 15%;margin-top: 8%;">
		
		<form action="${pageContext.request.contextPath }/addRecorApply" method="POST" id="recorForm">
			
			<div style="width:55%;float:left;padding-left:7%;border: solid 1px #EEEEEE;padding-top: 6%;height: 500px">
				<div><span style="font-size: 16px;">学生基本信息</span></div>
				<br>
				<table>
					<tr style="height: 70px;">
						<td >
							<span style="color: red;">*</span>
							<span style="font-size: 18px;">姓名</span>
						</td>
						<td style="padding-left: 20px;">
							
							<input class="form-control input-sm" style="width: 100px;" name="studentname" maxlength="5">
						</td>
						<td style="padding-left: 20px;"><a>请填写（2~5）位中文姓名</a></td>
					</tr>
					
					<tr style="height: 70px;">
						<td >
							<span style="font-size: 18px;">&nbsp;&nbsp;性别</span>
						</td>
						<td style="padding-left: 20px;">
							<select class="form-control input-sm" style="width: 60px;" name="studentsex">
								<option>男</option>
								<option>女</option>
							</select>
						</td>
						<td style="padding-left: 20px;"><a>选择学生性别</a></td>
					</tr>
					
					<tr style="height: 70px;">
						<td >
							<span style="color: red;">*</span>
							<span style="font-size: 18px;">电话</span>
						</td>
						<td style="padding-left: 20px;">
							<input class="form-control input-sm" style="width: 150px;" name="studentphone">
						</td>
						<td style="padding-left: 20px;"><a>填写学生有效的11位手机号</a></td>
					</tr>
					
					<tr style="height: 70px;">
						<td >
							<span style="font-size: 18px;">&nbsp;&nbsp;地址</span>
						</td>
						<td style="padding-left: 20px;">
							<input class="form-control input-sm" style="width: 200px;" name="studentaddress">
						</td>
						<td style="padding-left: 20px;"><a>填写学生现居住地址</a></td>
					</tr>
					
					<tr style="height: 70px;">
						<td >
							<span style="color: red;">*</span>
							<span style="font-size: 18px;">身份证号</span>
						</td>
						<td style="padding-left: 20px;">
							<input class="form-control input-sm" style="width: 200px;" name="idCard" maxlength="18">
						</td>
						<td style="padding-left: 20px;" id="hint-id"><a>填写学生有效身份证证件号</a></td>
					</tr>
				</table>
			</div>
			
			
			<div style="width: 45%;float:left;padding-top: 9%;padding-left: 2%;">
				<table>
					<tr style="height: 70px;">
						<td >
							<span style="color: red;">*</span>
							<span style="font-size: 16px;">选择就读校区</span>
						</td>
						<td style="padding-left: 20px;">
							<select class="form-control input-sm ssel" style="width: 150px;" name="campus">
								<option value=0 selected="selected">选择校区</option>
								<c:forEach var="campus" items="${mycampuslist }">
									<option value=${campus.id }>${campus.campusname }</option>
								</c:forEach>
							</select>
						</td>
						<!-- <td style="padding-left: 20px;"><a>请填写（2~5）位中文姓名</a></td> -->
					</tr>
					
					
					<tr style="height: 70px;">
						<td >
							<span style="color: red;">*</span>
							<span style="font-size: 16px;">选择部门</span>
						</td>
						<td style="padding-left: 20px;">
							<select class="form-control input-sm ssel" style="width: 150px;" name="department" >
								
							</select>
						</td>
						<!-- <td style="padding-left: 20px;"><a>请填写（2~5）位中文姓名</a></td> -->
					</tr>
					
					
					<tr style="height: 70px;">
						<td >
							<span style="color: red;">*</span>
							<span style="font-size: 16px;">选择所学课程</span>
						</td>
						<td style="padding-left: 20px;">
							<select class="form-control input-sm ssel" style="width: 150px;" name="courses" id="courses-select">
								
							</select>
						</td>
						<!-- <td style="padding-left: 20px;"><a>请填写（2~5）位中文姓名</a></td> -->
					</tr>
					
					<tr style="height: 70px;">
						<td >
							<span style="color: red;">*</span>
							<span style="font-size: 16px;">选择班级</span>
						</td>
						<td style="padding-left: 20px;">
							<select  class="form-control input-sm ssel" style="width: 150px;" name="gradeid">
								<option ></option>
							</select>
						</td>
						<!-- <td style="padding-left: 20px;"><a>请填写（2~5）位中文姓名</a></td> -->
					</tr>
				</table>
				
				<div style="margin-top: 7%;">
					
						<button type="reset" class="btn btn-xs " style="margin-left:10%;" onclick="quit()">取 消</button>
						<button type="submit" class="btn btn-xs btn-green" style="margin-left:10%;">提交申请</button>
					
				</div>
			</div>
		</form>
		
	
	</div>
	
	
</div>


	<script type="text/javascript">
	var coustruction =null;
	var falg = false;	
		
		
		$(function(){
		
		
		//校区发生改变时
		$("[name=campus]").change(function(){
		
			if($(this).val()==0){
				$("[name=gradeid]").html("");
				$("#courses-select").html("");
				$("[name=department]").html("");
				return;
			}
			$.ajax({
				url:'${pageContext.request.contextPath }/genjucidquzhaodid',
				type:'POST',
				dataType:'JSON',
				async: false,
				data:{
					"cid":$(this).val()
				},
				success:function(data){
					$("[name=gradeid]").html("");
					$("#courses-select").html("");
					$("[name=department]").html("");
					
					
					 console.log(data);
					if(data==""){return;}
					$("[name=department]").append("<option selected='selected' value=0>选择部门</option>");
					$.each(data,function(){
						$("[name=department]").append("<option value="+this.id+">"+this.departmentname+"</option>");
					});
				},
				error:function(){
				
				}
			
			});
		
		});
		
		
		
		//部门发生改变时
		$("[name=department]").change(function(){
			if($(this).val()==0){
				$("[name=gradeid]").html("");
			 	$("[name=courses]").html("");
				return;
			}
		 $.ajax({
		 type:'POST',
		 url:'${pageContext.request.contextPath }/getConstruction',
		 dataType:'JSON',
		 async: false,
		 data:{
		 	"campusid":$("[name=campus]").val(),
		 	"departmentid":$(this).val()
		 },
		 success:function(data){
			 $("[name=gradeid]").html("");
			 $("[name=courses]").html("");
			 
			 
			 if(data==""){return;}
			 $("#courses-select").append("<option selected='selected' value=0>请选择课程</option>");
		 	 $.each(data[0].coureses,function(){
						$("[name=courses]").append("<option value="+this.id+">"+this.courseName+"</option>");
					});
		 	 
		 },
		 error:function(error){
		 
		 }
		 
		 });
			
		});
		
		
		
		var gradeStr="";
		//课程发生改变时
		$("[name=courses]").change(function(){
			
			$.ajax({
				url:"${pageContext.request.contextPath }/getGeadeByCourses",
				type:"POST",
				dataType:"JSON",
				async: false,
				data:{
					"coursesId":$(this).val(),
					"campusid":$("[name=campus]").val()
				},
				success:function(data){
					$("[name=gradeid]").html("");
					
					if(data==""){return;}
					$.each(data,function(){
					$("[name=gradeid]").append("<option value="+this.gradeno+">"+this.gradecode+"</option>");
					
					});
				
				},
				error:function(){
				
				}
			
			});
		});
		
		
		
		
		
		falg=true;
	 	$("[name=studentname]").val('${student2c.studentName}');
		$("[name=studentsex]").val('${student2c.sex}');
		$("[name=studentphone]").val('${student2c.phone}');
		$("[name=studentaddress]").val('');
		$("[name=idCard]").val('${student2c.address}'); 
	    
	    var graph = "${empty xq}";
	    
		if(graph!="true"){
		
		$("[name=campus]").val('${xq}');
		$("[name=campus]").trigger("change");
		
		$("[name=department]").val('${bm}');
	//	alert('${bm}');
		$("[name=department]").trigger("change");
		
		$("[name=courses]").val('${kc}');
		$("[name=courses]").trigger("change");
		
		$("[name=gradeid]").val('${bj}');
		$("[name=gradeid]").trigger("change");
		
		}
		
		

		
		
		
		
		
		//表单验证
		$("[name=studentname]").blur(function(){
		    if($(this).val().length<2){
		    	$(this).parent().next().html("<a style='color:red'>姓名格式错误</a>");
		    	falg = false;
		    }else{
		    	$(this).parent().next().html("<a>请填写（2~5）位中文姓名</a>");
		    	falg = true;
		    }
		});
				//表单验证
		$("[name=studentphone]").blur(function(){
		    if(!(/^1[34578]\d{9}$/).test($(this).val())){
		    	$(this).parent().next().html("<a style='color:red'>电话格式错误</a>");
		    	falg = false;
		    }else{
		    	$(this).parent().next().html("<a>填写学生有效的11位手机号</a>");
		    	falg = true;
		    }
		});
		
				//表单验证
		$("[name=idCard]").blur(function(){
			var isIDCard2=/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/;
		    if(!(isIDCard2.test($(this).val()))){
		    	$(this).parent().next().html("<a style='color:red'>身份证格式错误</a>");
		    	falg = false;
		    }else{
		    	$.ajax({
		    		url:"${pageContext.request.contextPath }/sfcz",
		    		type:"POST",
		    		dataType:"JSON",
		    		data:{
		    			"idCard":$(this).val()
		    		},
		    		success:function(data){
		    	
		    		if(data==0){
		    			$("#hint-id").html("<a>填写学生有效身份证证件号</a>");
		    			falg = true;
		    		}else{
		    			$("#hint-id").html("<a style='color:red'>该学生已在申请过档案</a>");
		    			falg = false;
		    			}
		    		},
		    		error:function(){
		    		
		    		}
		    	
		    	});
		    	
		    	
		    }
		    
		    
		});
		
		//档案提交事件
		$("#recorForm").submit(function(){
			
			
		var a=  $("[name=gradeid]").val();
		if(a==null){
			falg=false;
		}
		if(falg==false){
		alert("信息不完善！！！");
			return false;
		}
		
		});

		
		
		
		
		});
		
		//取消事件
		function quit(){
			$(".ssel").val(0);
			$("[name=gradeid]").html("");
			$("#courses-select").html("");
			$("[name=department]").html("");
		
		
		}
		
    </script>


 <!-- 档案审核模块 -->
 <div role="tabpanel" class="tab-pane" id="sitt">
 	<div class="check-div">
			
		<select class="btn btn-yellow btn-xs" style="margin-left: 10%;" id="record-sel" >
			<option value=-1>所有档案</option>
			<option value=0>未审核</option>
			<option value=1>已通过</option>
			<option value=2>已驳回</option>
		</select>
	</div>	
	<div class="data-div">
		<div class="row tableHeader">
			<div class="col-xs-1">编码</div>
			<div class="col-xs-1">申请人</div>
			<div class="col-xs-1">学生姓名</div>
			<div class="col-xs-1">学生性别</div>
			<div class="col-xs-1">学生电话</div>
			<div class="col-xs-1">出生日期</div>
			<div class="col-xs-1">申请班级</div>
			<div class="col-xs-2">申请时间</div>
			<div class="col-xs-1">状态</div>
			<div class="col-xs-1">操作</div>
		</div>
		<div class="tablebody" id="record-table">
			
			
			
			
			
			
			<c:forEach var="record" items="${ recordList}">
				
				
				<div class="row">
				
				<form action="${pageContext.request.contextPath }/addStu" id="pass${record.id }" method="POST">
				
				<div class="col-xs-1 ">${record.id }</div>
				<input type="hidden" name="recordId" value="${record.id }">
				
				<div class="col-xs-1">${record.proposername }</div>
				
				<div class="col-xs-1">${record.studentname }</div>
				<input type="hidden" name="studentName" value="${record.studentname }">
				
				<div class="col-xs-1">${record.studentsex }</div>
				<input type="hidden" name="sex" value="${record.studentsex }">
				
				<div class="col-xs-1">${record.studentphone }</div>
				<input type="hidden" name="phone" value="${record.studentphone }">
				
				<c:if test="${record.idCard!=''}">
				<div class="col-xs-1">${record.idCard.substring(6,10)}</div>
				</c:if>
				<c:if test="${record.idCard==''}">
				<div class="col-xs-1">未知</div>
				</c:if>
				
				
				
				<div class="col-xs-1">${record.gradecode }</div>
				<input type="hidden" name="gradeno" value="${record.gradeid }">
				<input type="hidden" name="address" value="${record.studentaddress }">
				
				<c:if test="${record.idCard!=''}">
				<input type="hidden" name="age" value="${record.idCard.substring(6,10)}">
				</c:if>
				<div class="col-xs-2">${record.applytime }</div>
				</form>
				<div class="col-xs-1">
					<c:if test="${record.status==0 }">
						等待审核
					</c:if>
					
					<c:if test="${record.status==1 }">
						已通过
					</c:if>
					
					<c:if test="${record.status==2 }">
						已驳回
					</c:if>
				
				
				</div>
				<div class="col-xs-1">
				
				    <c:if test="${record.status==0 }">
					<button class="btn btn-success btn-xs " data-toggle="modal" 
							data-target="#passApply" onclick="sel('#pass${record.id }')"  >通过</button>
					<button class="btn btn-danger btn-xs" data-toggle="modal"
							data-target="#rejected"  onclick="sel('${record.id }')"  >驳回</button>
					</c:if>
					
					<c:if test="${record.status!=0 }">
					<!-- <button class="btn btn-success btn-xs" data-toggle="modal"
							data-target="#rejected"    >查看</button> -->
					
					</c:if>
					
				</div>
			</div>
			
			</c:forEach>
		

		</div>
		
		
			<!--页码块-->
	<footer class="footer">
		<ul class="pagination">
			<li>当前第
			<select id="record-page">
					<c:forEach var="i" items="${recordPage.pageList }">
						<option value="${i }">${i}</option>
					</c:forEach>
			</select> 页</li>
			<li class="gray">共${recordPage.countPage }页</li>
			<a href="${pageContext.request.contextPath }/getRecord?indexPage=${recordPage.index-1}&recordStatus=${recordStatus}">
				<li><i id="courses-up" class="glyphicon glyphicon-menu-left" > </i></li>
			</a>
			<a href="${pageContext.request.contextPath }/getRecord?indexPage=${recordPage.index+1}&recordStatus=${recordStatus}">
				<li><i id="courses-below" class="glyphicon glyphicon-menu-right"> </i></li>
			</a>
		</ul>
	</footer>

	</div>
		
			
		

 
 
 </div>
 
 
 
  <!-- 档案通过 -->
 <div class="modal fade" id="passApply" role="dialog" aria-labelledby="passApplyModalLabel">
 		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title" id="passApplyModalLabel">提示</h4>
				</div>
				<div class="modal-body">
					<div class="container-fluid">确定要接受该学生？</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-xs btn-white"
						data-dismiss="modal">取 消</button>
					<button type="button" class="btn  btn-xs btn-danger" id="addStu">确 定</button>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
 </div>
 
 
 
 <!-- 档案驳回 -->
 <div class="modal fade" id="rejected" role="dialog" aria-labelledby="gridSystemModalLabel">
 		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title" id="gridSystemModalLabel">提示</h4>
				</div>
				<div class="modal-body">
					<div class="container-fluid">确定要驳回该申请？请输入驳回理由</div>
					<textarea style="width: 80%;" name="reject-info"></textarea>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-xs btn-white"
						data-dismiss="modal">取 消</button>
					<button type="button" class="btn  btn-xs btn-danger" id="reject-record">确 定</button>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
 </div>

 
 <script type="text/javascript">
  var stu ="";
 $(function(){

	//标记当前页码
 	$("#record-page").val('${recordPage.index}');
 	
 	//标记当前查询档案的状态
 	$("#record-sel").val('${recordStatus}');
 	
 	//按页码查询
 	$("#record-page").change(function(){
 		window.location.href="${pageContext.request.contextPath }/getRecord?indexPage="
 		+$(this).val()+"&recordStatus=${recordStatus}";
 	
 	});
 	
 	//更改查询档案状态
 	$("#record-sel").change(function(){
 		//alert($(this).val());
 		window.location.href="${pageContext.request.contextPath }/getRecord?indexPage=1&recordStatus="+$(this).val();
 		
 		
 	});
 	
 	//档案通过方法
 	$("#addStu").click(function(){
 	  	$(stu).submit();
 	});
 	
 	
 	//档案驳回方法
 	$("#reject-record").click(function(){
 	window.location.href="${pageContext.request.contextPath }/rejectRecord?recordId="
 	+stu+"&remark="+$("[name=reject-info]").val();
 	});
 
 });
 

 function sel(node){
    stu=node;
 }
</script>







<!-- 历史记录模块 -->
 <div role="tabpanel" class="tab-pane" id="stud">
	<div class="check-div">
			
		<select class="btn btn-yellow btn-xs" style="margin-left: 10%;" id="historyRecord-sel">
			<option value=${user.teacherid }>我的历史记录</option>
			<option value=-1>本部门历史记录</option>
		</select>
		
		
		<select class="btn btn-yellow btn-xs" style="margin-left: 10%;" id="historyRecordStatus">
			<option value=-1>所有档案</option>
			<option value=0>未审核</option>
			<option value=1>已通过</option>
			<option value=2>已驳回</option>
		</select>
		
		<input class="form-control input-sm" style="margin-left: 35%;" placeholder="输入电话号码或者手机号查询" style="width: 150px;" name="chaxun">
		<button class="btn btn-primary  btn-sm" onclick="chauxn()">查 询</button>
		
		<div class="data-div">
		<div class="row tableHeader">
			<div class="col-xs-1 ">编码</div>
			<div class="col-xs-1">申请人</div>
			<div class="col-xs-1">学生姓名</div>
			<div class="col-xs-1">学生性别</div>
			<div class="col-xs-1">学生电话</div>
			<div class="col-xs-1">学生年龄</div>
			<div class="col-xs-1">申请班级</div>
			<div class="col-xs-2">申请时间</div>
			<div class="col-xs-1">状态</div>
			<div class="col-xs-1">操作</div>
		</div>
		<div class="tablebody" id="record-table">
			
			 <c:if test="${ OneselfHistoryRecordList==null}">
			 	<div>暂无更多记录</div>
			 </c:if>
			
			
			
			
			<c:forEach var="record" items="${ OneselfHistoryRecordList}">
				
				
				<div class="row">
				
				<form action="${pageContext.request.contextPath }/a" id="CXTJ${record.id }" method="POST">
				
				<div class="col-xs-1 ">${record.id }</div>
				<input type="hidden" name="recordId" value="${record.id }">
				
				
				<c:if test="${record.proposer==user.teacherid }">
				<div class="col-xs-1">${record.proposername }</div>
				</c:if>
				<c:if test="${record.proposer!=user.teacherid }">
				<div class="col-xs-1">未知</div>
				</c:if>
				
				<div class="col-xs-1">${record.studentname }</div>
				<input type="hidden" name="studentName" value="${record.studentname }">
				
				<div class="col-xs-1">${record.studentsex }</div>
				<input type="hidden" name="sex" value="${record.studentsex }">
				
				<div class="col-xs-1">${record.studentphone }</div>
				<input type="hidden" name="phone" value="${record.studentphone }">
				
				<div class="col-xs-1">22</div>
			
				
				<div class="col-xs-1">${record.gradecode }</div>
				
				<input type="hidden" name="address" value="${record.idCard }">
				<input type="hidden" name="idCard" value="${record.studentaddress }">
				<div class="col-xs-2">${record.applytime }</div>
				
				<div class="col-xs-1">
					<c:if test="${record.status==0 }">
						等待审核
					</c:if>
					
					<c:if test="${record.status==1 }">
						已通过
					</c:if>
					
					<c:if test="${record.status==2 }">
						已驳回
					</c:if>
				
				
				</div>
				<div class="col-xs-1">
				
				<c:if test="${record.proposer==user.teacherid }">
				    <c:if test="${record.status==0 }">
					
					<button class="btn btn-danger btn-xs" data-toggle="modal"
							data-target="" type="submit" >更改申请</button>
					</c:if>
					
					<c:if test="${record.status==1 }">
					<!-- <button class="btn btn-success btn-xs " data-toggle="modal" 
							data-target="" >查看</button> -->
					
					</c:if>
					
					<c:if test="${record.status==2 }">
					<button class="btn btn btn-warning btn-xs " type="button" data-toggle="modal" 
							data-target="#rejectedXQ" onclick="chakanLY('${record.remark}',${record.id })" >详情</button>
					
					</c:if>
				</c:if>
				</div>
				</form>
			</div>
			
			</c:forEach>
		

		</div>
		
		
			<!--页码块-->
	<footer class="footer">
		<ul class="pagination">
			<li>当前第
			<select id="historyRecord-page">
					<c:forEach var="i" items="${OneselfHistoryRecordPage.pageList }">
						<option value="${i }">${i}</option>
					</c:forEach>
			</select> 页</li>
			<li class="gray">共${OneselfHistoryRecordPage.countPage }页</li>
			<a href="${pageContext.request.contextPath }/getOneselfHistoryRecord?index=${OneselfHistoryRecordPage.index-1}&historyTeacherId=${historyTeacherId}&status=${historyRecordStatus}">
				<li><i id="courses-up" class="glyphicon glyphicon-menu-left" > </i></li>
			</a>
			<a href="${pageContext.request.contextPath }/getOneselfHistoryRecord?index=${OneselfHistoryRecordPage.index+1}&historyTeacherId=${historyTeacherId}&status=${historyRecordStatus}">
				<li><i id="courses-below" class="glyphicon glyphicon-menu-right"> </i></li>
			</a>
		</ul>
	</footer>

	</div>
		
		
		
		
	</div>
</div>




  <!-- 查看驳回详情 -->
 <div class="modal fade" id="rejectedXQ" role="dialog" aria-labelledby="aaaaa">
 		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title" id="aaaaa">提示</h4>
				</div>
				<div class="modal-body">
					<div class="container-fluid">驳回理由</div>
					<div>
					<textarea id="bhLY" disabled="disabled">
					
					</textarea>
					
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-xs btn-white"
						data-dismiss="modal">取 消</button>
					<button type="button" class="btn  btn-xs btn-danger" onclick="CXTJ()">重新申请</button>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
 </div>
 
<script type="text/javascript">
	$(function(){
		
   	$("#historyRecord-page").val('${OneselfHistoryRecordPage.index}');
    $("#historyRecord-sel").val('${historyTeacherId}');
  	$("#historyRecordStatus").val('${historyRecordStatus}');
   	
		
	
    $("#historyRecord-page").change(function(){
    
    window.location.href="${pageContext.request.contextPath }/getOneselfHistoryRecord?index="+$(this).val()
    					+"&historyTeacherId="
                        +"${historyTeacherId}&status=${historyRecordStatus}";
    });
  
    
  
    $("#historyRecord-sel").change(function(){
    window.location.href="${pageContext.request.contextPath }/getOneselfHistoryRecord?index=1&historyTeacherId="
                          +$(this).val()+"&status=${historyRecordStatus}";
   });
    
    
    $("#historyRecordStatus").change(function(){
        window.location.href="${pageContext.request.contextPath }/getOneselfHistoryRecord?index=1&historyTeacherId=${historyTeacherId}"
                          +"&status="+$(this).val();
     });	
		
		
	});
	
	
	//查询
	function chauxn(){
		var xinxi = $("[name=chaxun]").val();
		if(xinxi==""){
			return;
		}
		window.location.href="${pageContext.request.contextPath }/getOneRecord?xinxi="+xinxi;
	
	}
	
	
	//查看驳回理由\
	var reid =0;
	function chakanLY(ly,id){
		$("#bhLY").html(ly);
		reid =id;
	}
	
	
	
	//重新提交的方法
	
	function CXTJ(){
		$("#CXTJ"+reid).submit();
		
	}
	
	
</script> 










